package com.es.domain;

import org.omg.PortableInterceptor.SUCCESSFUL;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-30 11:22
 */
public enum ResultCodeEnum {
    ERROR(500,"服务器内部错误"),
    FAIL(-1,"fail"),
    SUCCESS(0, "success");
    private Integer code;
    private String msg;
    ResultCodeEnum(Integer code, String msg){
        this.code=code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
